package com.ruoyi.app.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件信息对象 app_file
 * 
 * @author ruoyi
 * @date 2019-12-12
 */
@ApiModel(value="回执信息",description="回执信息")
public class AppFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="id",name="id",example="1")
    private Long id;

    @ApiModelProperty(value="源ID",name="sourceId",example="1")
    @Excel(name = "源ID")
    private Long sourceId;

    @ApiModelProperty(value="源类型",name="sourceType",example="1")
    @Excel(name = "源类型")
    private String sourceType;

    @ApiModelProperty(value="文件地址",name="url",example="1")
    @Excel(name = "文件地址")
    private String url;

    @ApiModelProperty(value="文件类型",name="fileType",example="1")
    @Excel(name = "文件类型")
    private String fileType;

    @ApiModelProperty(value="文件名称",name="fileName",example="1")
    @Excel(name = "文件名称")
    private String fileName;

    @ApiModelProperty(value="文件原名称",name="fileOldName",example="1")
    @Excel(name = "文件原名称")
    private String fileOldName;

    @ApiModelProperty(value="文件大小",name="fileSize",example="1")
    @Excel(name = "文件大小", readConverterExp = "k")
    private Long fileSize;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileOldName(String fileOldName) 
    {
        this.fileOldName = fileOldName;
    }

    public String getFileOldName() 
    {
        return fileOldName;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceId", getSourceId())
            .append("sourceType", getSourceType())
            .append("url", getUrl())
            .append("fileType", getFileType())
            .append("fileName", getFileName())
            .append("fileOldName", getFileOldName())
            .append("fileSize", getFileSize())
            .toString();
    }
}
